package com.charm.quicktrade

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.alibaba.android.arouter.facade.annotation.Route
import org.jetbrains.anko.include
import org.jetbrains.anko.support.v4.UI

/**
 * Created by tools on 2018/1/2.
 */
@Route(path = "/quicktrade/main")
class QuickTradeFragment : Fragment() {
    lateinit var text: TextView
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return UI {
            var v = include<View>(R.layout.fragment_quick_trade)
            text = v.findViewById(R.id.text)
        }.view

    }

    override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        text.text = "贸易专区"
    }
}